<%-- 
    Document   : seznam
    Created on : 29.4.2011, 15:36:54
    Author     : pyty
--%>

<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
 
<html>
    <head>
        <title>Zoznam médií</title>
    </head>
    <body>
        <h2>Zoznam médií</h2>
        <table border="1">
            <tr>
                <th>Meno</th>
                <th>Autor</th>
                <th>Typ</th>
                <th>Popis</th>
            </tr>
        <c:forEach items="${mediums}" var="medium">
            <tr>
                <td><c:out value="${medium.name}"/></td>
                <td><c:out value="${medium.author}"/></td>
                <td><c:out value="${medium.type}"/></td>
                <td><c:out value="${medium.description}"/></td>
            </tr>    
        </c:forEach>
        </table>
        <a href="${pageContext.request.contextPath}" >Pridať médium</a>
     </body>
</html>